<?php

namespace Sisesporte\Entity;

use Doctrine\ORM\Mapping as ORM,
        Doctrine\Common\Collections\ArrayCollection;

/**
 * @ORM\Entity
 * @ORM\Table(name="tipo_nivel_equipe")
 * @ORM\Entity(repositoryClass="Sisesporte\Repository\TipoNivelEquipeRepository")
 */
class TipoNivelEquipe {

    public function __construct($options = null) {
        Configurator::configure($this,$options);
        $this->tipoNivel = new ArrayCollection;
    }
    
    /**
     * @ORM\Column(name="sq_nivel", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    protected $sqNivel;
    
    /**
     * @var string $noNivel
     * @ORM\Column(name="no_nivel", type="text", nullable=false)
     */
    protected $noNivel;
    
    /**
     * @var string $sgNivel
     * @ORM\Column(name="sg_nivel", type="text", nullable=true)
     */
    protected $sgNivel;
    
    /**
     * @var boolean $stAtivo
     * @ORM\Column(name="st_ativo", type="boolean", nullable=false)
     */
    protected  $stAtivo;
    
     /**
     * @ORM\OneToMany(targetEntity="Sisesporte\Entity\Turma", mappedBy="sq_nivel")
     */
    protected $tipoNivel;

    public function setSqNivel($sqNivel) {
        $this->sqNivel = $sqNivel;
    }
    
    public function getSqNivel() {
        return $this->sqNivel;
    }

    public function getNoNivel() {
        return $this->noNivel;
    }

    public function setNoNivel($noNivel) {
        $this->noNivel = $noNivel;
        return $this;
    }

    public function getSgNivel() {
        return $this->sgNivel;
    }

    public function setSgNivel($sgNivel) {
        $this->sgNivel = $sgNivel;
        return $this;
    }

    public function getStAtivo() {
        return $this->stAtivo;
    }

    public function setStAtivo($stAtivo) {
        $this->stAtivo = $stAtivo;
        return $this;
    }

    public function getTipoNivel() {
        return $this->tipoNivel;
    }

    public function setTipoNivel($tipoNivel) {
        $this->tipoNivel = $tipoNivel;
        return $this;
    }
    
    public function toArray() {
        return array(
            'sqNivel'=>$this->getSqNivel(),
            'noNivel'=>$this->getNoNivel(),
            'sgNivel'=>$this->getSgNivel(),
            'stAtivo'=>$this->getStAtivo(), 
            'tipoNivel'=>  $this->getTipoNivel(), 
            );
    }
}
